#ifndef MAINWINDOW_HPP_
# define MAINWINDOW_HPP_

# include <QtGui>
# include "Pizzeria/Reception.hpp"

/*! GUI namespace */
namespace gui {

/*! A simple and ugly GUI */
class MainWindow: public QWidget {
  Q_OBJECT

public:
  /*! Constructor
   * \param reception : The \a Reception object representing the reception
   *			of the pizzeria.
   */
  MainWindow(pizzeria::Reception &reception);
  /*! Destructor */
  ~MainWindow();

private slots:
  /*! Slots used when an order is given by the user */
  void OrderReceived();

private:
  QLineEdit *mOrderLine; /*!< Order taker */
  QTableWidget *mTable; /*!< Kitchens status table */
  QPushButton *mQuitButton; /*!< Quit button */
  pizzeria::Reception &mReception;
};

} /* !namespace gui */

#endif /* !MAINWINDOW_HPP_ */
